/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package east2west.interfaces;

import east2west.dto.CarOrderDetailDTO;
import java.util.ArrayList;

/**
 *
 * @author anhtuan
 */
public interface CarOrderDetailInterface {

    ArrayList<CarOrderDetailDTO> readByAll();

    CarOrderDetailDTO findById(int id);
    ArrayList<CarOrderDetailDTO> findByOrderId(int id);

    ArrayList<CarOrderDetailDTO> findByCarId(int id);

    ArrayList<CarOrderDetailDTO> findByPickUpDate(String pickUpDate);

    ArrayList<CarOrderDetailDTO> findByDropOffDate(String dropOffDate);

    ArrayList<CarOrderDetailDTO> findByDriver(byte driver);

    ArrayList<CarOrderDetailDTO> findByTotal(float total);

    boolean create(CarOrderDetailDTO dto);

    boolean update(CarOrderDetailDTO dto);

    boolean delete(CarOrderDetailDTO dto);

    boolean delete(int id);
}
